﻿using System.Collections.Generic;
using System.Configuration;
using System.Linq;

namespace CodePlex.TfsPluginSuite.Configuration.ForbiddenPatternsPolicy
{
    public class ForbiddenPatternConfigurationElement : ConfigurationElement
    {
        [ConfigurationProperty("name", IsRequired = true)]
        public string Name
        {
            get
            {
                return (string)base["name"];
            }
        }

        [ConfigurationProperty("regularExpression", IsRequired = true)]
        public string RegularExpression
        {
            get
            {
                return (string)base["regularExpression"];
            }
        }

        [ConfigurationProperty("message", IsRequired = true)]
        public string Message
        {
            get
            {
                return (string)base["message"];
            }
        }

        [ConfigurationProperty("changeTypes", DefaultValue = "All")]
        public string ChangeTypes
        {
            get
            {
                return (string)base["changeTypes"];
            }
        }
    }
}
